home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 146
/
(Vol 146) Jan 07 2012.iso
/
Games
/
tontie_hammer.swf
/
scripts
/
DefineSprite_256
/
frame_2
/
PlaceObject2_255_3
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2012-01-07
|
702b
|
43 lines
onClipEvent(enterFrame){
if(joutai == "up")
{
if(_Y > 0)
{
_Y = _Y - _parent.hitokoma;
}
else
{
_Y = 0;
joutai = "top";
}
}
else if(joutai == "top")
{
if(k > 0)
{
k -= 1;
}
else
{
joutai = "down";
}
}
else if(joutai == "down")
{
if(_Y < _parent.soko)
{
_Y = _Y + _parent.hitokoma;
}
else
{
_Y = _parent.soko;
_root.mogura_on -= 1;
_root.damage(_parent.attack);
with(_parent)
{
gotoAndStop("off");
}
}
}
}